﻿/*----------------------------------------------------------------
// Copyright (C) 2016 通通优品版权所有。
// 命名空间: STOWaybillMall.ShopCart.Controllers
// 类名：ShopCartController
// 功能描述：N/A
// 
// 创建标识：Roc.Lee(李鹏鹏) 2017/8/8 19:14:42 TEC-ROCLEE Roc.Lee

// 修改标识：
// 修改描述：
// 
//
//----------------------------------------------------------------*/
using STOWaybillMall.Orders.Dto;
using STOWaybillMall.ShopCart.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;
using TongTongMall.MallWeb.WebApi.Controllers;

namespace STOWaybillMall.ShopCart.Controllers
{
    /// <summary>
    /// 购物车
    /// </summary>
    [RoutePrefix("api/shopcart")]
    public class ShopCartController : MallWebApiControllerBase
    {
        /// <summary>
        /// 购物车列表
        /// </summary>
        /// <returns></returns>
        [Route("list")]
        public GetShopCartListOutput GetShopCartList()
        {
            CheckModelState();
            return new GetShopCartListOutput();
        }
        /// <summary>
        /// 购物车修改
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        [Route("change")]
        public GetShopCartListOutput ShopCartChange(ShopCartChangeInput input)
        {
            CheckModelState();
            return new GetShopCartListOutput();
        }
        /// <summary>
        /// 购物车删除
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        [Route("delete")]
        public GetShopCartListOutput ShopCartDelete(ShopCartDeleteInput input)
        {
            CheckModelState();
            return new GetShopCartListOutput();
        }
        /// <summary>
        /// 购物车选择
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        [Route("elect")]
        public GetShopCartListOutput ShopCartElect(ShopCartElectInput input)
        {
            CheckModelState();
            return new GetShopCartListOutput();
        }
        /// <summary>
        /// 购物结算
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        [Route("settlement")]
        public ShoppingSettlementOutput ShoppingSettlement(ShoppingSettlementInput input)
        {
            CheckModelState();
            return new ShoppingSettlementOutput();
        }
        /// <summary>
        /// 提交订单
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        [Route("submit-order")]
        public SubmitOrderOutput SubmitOrder(SubmitOrderInput input)
        {
            CheckModelState();
            return new SubmitOrderOutput();
        }
    }
}
